<template>
  <h1>hello</h1>
  <button v-on:click="axiosTest()">sss</button>
</template>

<script>
import axios from "@/settings/axios"; // @是src
const sysMapping = require("../../settings/sysMapping");
export default {
  name: "Hello.vue",
  methods: {
    axiosTest: async function () {
      // let text = axios.post("http://localhost:18080/sys_division/get_division_level_info");

      let text = await axios.post("/api/sys_division/get_division_level_info");
      // text.then((result)=>{
      //   console.log("快快！"+result.message)}
      // );
      console.log(text)
      // alert(text);
      // console.log(text);
      localStorage.setItem(sysMapping.TOKEN,"37bf77467bc94b74bd47a0b627ebc781");
      console.log(localStorage.getItem(sysMapping.TOKEN));
      console.log(sysMapping.TOKEN);
      console.log(text.data)
    }
  }
};
</script>


<style scoped>

</style>
